package com.dd.cloud.user.service.chknowl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.chknowl.ChkonwlDoctorBookSetting;
import com.dd.cloud.user.req.chknowl.ChknowlBookDoctorSettingReq;
import com.dd.cloud.user.req.chknowl.ChkonwlBookSettingReq;

/**
 * <p>
 * 我的书籍设置 服务类
 * </p>
 *
 * @author czg
 * @since 2023-10-17
 */
public interface IChkonwlDoctorBookSettingService extends IService<ChkonwlDoctorBookSetting> {

    /**
     * 添加标签
     * @param req
     */
    void addDoctorBookSetting(ChknowlBookDoctorSettingReq req);

    /**
     * 查询医生设置记录
     * @param req
     * @return
     */
    IPage<ChkonwlDoctorBookSetting> queryDoctorBookSettingPage(ChkonwlBookSettingReq req);

    /**
     * 书籍id
     * @param bookId
     */
    void addDoctorBookReadFirstRecord(Integer bookId);

    /**
     * 查看记录
     * @param bookId
     * @return
     */
    ChkonwlDoctorBookSetting queryReadBookReadRecord(Integer bookId);

    /**
     * 移除书签
     */
    void removeBookSetting(Integer id);

    /**
     * 查询是否为书签
     */
    boolean selectBookIsSetting(Integer bookId, Integer doctorId, String cfi);
}
